#==============================================================================
# thread
#==============================================================================
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

PROJECT(thread)

#------------------------------------------------------------------------------
INCLUDE_DIRECTORIES(
    ${PROJECT_SOURCE_DIR}
)

set(thread_SRC
    Main.cc
)

#------------------------------------------------------------------------------
ADD_EXECUTABLE(thread ${thread_SRC})
TARGET_LINK_LIBRARIES(thread yxs)

IF(WIN32)
ELSE()
TARGET_LINK_LIBRARIES(thread pthread)
ENDIF()
